package rjgc.demo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;

/**
 * 
 * 
 * @author lwq
 * @email sunlightcs@gmail.com
 * @date 2022-04-27 15:17:35
 */
@Data
@TableName("commodity")
public class CommodityEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	private String name;
	/**
	 * 规格
	 */
	private String spec;
	/**
	 * 价格
	 */
	private Double price;
	/**
	 * 原价
	 */
	private Double marketprice;
	/**
	 * 详细信息
	 */
	private String content;
	/**
	 * 时间
	 */
	private String date;

	public CommodityEntity() {
	}

	public CommodityEntity(String name, String spec, Double price, Double marketprice, String content, String date) {
		this.name = name;
		this.spec = spec;
		this.price = price;
		this.marketprice = marketprice;
		this.content = content;
		this.date = date;
	}
}
